package com.inno.sms.api;

import com.inno.sms.dto.SmsInfoDTO;
import com.inno.sms.response.CommonReturnType;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author sean
 */
@FeignClient(name = "zey-inno-sms")
public interface SmsFeignService {
    @PostMapping("/sms/send")
    CommonReturnType<Void> sendSms(@RequestBody SmsInfoDTO smsInfoDTO);

    @PostMapping("/sms/validate")
    CommonReturnType<Boolean> validate(@RequestBody SmsInfoDTO smsInfoDTO);
}
